/*
  S.M.A.C.K - An operating system kernel
  Copyright (C) 2010,2011 Mattias Holm and Kristian Rietveld
  For licensing and a full list of authors of the kernel, see the files
  COPYING and AUTHORS.
*/

#ifndef KERNEL__ERRNO_H
#define KERNEL__ERRNO_H

/* FIXME: Perhaps we should use the same values as POSIX? */

#define EINVAL 1                /* Invalid argument */
#define EEOF 2                  /* End of file */
#define ENOENT 3                /* No such file or directory */
#define ENOTDIR 4               /* Not a directory */
#define EMFILE 5                /* Too many open files */
#define EBADF 6                 /* Bad file descriptor */
#define ENOMEM 7                /* Out of memory */
#define ENOSPC 8                /* No space left on device/file system */
#define EEXIST 9                /* File exists */
#define ENOTEMPTY 10            /* Directory not empty */
#define EIO 11                  /* I/O error occurred */

#endif /* KERNEL__ERRNO_H */
